package com.gupao.edu.study.singleton;
/**
 * @Author: guqy
 * @Description:枚举类单例
 * @Date 11:41 2018/3/19
 */
public enum EnumSingleton {

    FAILED(0, "failed"),
    SUCCESS(1, "success");

    public int code;

    public String message;

    EnumSingleton(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
